package com.szc.demo01.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.szc.demo01.dao.NoticeMapper;
import com.szc.demo01.pojo.Notice;
import com.szc.demo01.pojo.dto.NoticeEmpDto;
import com.szc.demo01.service.NoticeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
    @Resource
    private NoticeMapper noticeMapper;

    @Override
    public List<NoticeEmpDto> noticelist() {
        return this.noticeMapper.noticelist();
    }
}
